package com.wdzl.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;

import javax.swing.JDialog;
import javax.swing.JPanel;

import com.wdzl.dao.StudentDao;

public class PieImageDialog extends JDialog {


	/**
	 * Create the dialog
	 */
	public PieImageDialog() {
		super();
		setTitle("学员分布图");
		setBounds(100, 100, 500, 375);

		StudentDao dao = new StudentDao();
		JPanel panel = dao.getPiePanel();

		getContentPane().add(panel, BorderLayout.CENTER);

		final JPanel panel_1 = new JPanel();
		getContentPane().add(panel_1, BorderLayout.SOUTH);

		final JButton button = new JButton();
		button.setText("饼图");
		panel_1.add(button);

		final JButton button_1 = new JButton();
		button_1.setText("柱状图");
		panel_1.add(button_1);
		//
	}

}
